+Sun May 9 01:25:37 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkiconfactory.c (add_to_cache): Actually count the
+ cached icons. (#135888, Crispin Flowerday)
+
Sun May 9 00:03:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
+Sun May 9 01:25:37 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkiconfactory.c (add_to_cache): Actually count the
+ cached icons. (#135888, Crispin Flowerday)
+
Sun May 9 00:03:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
+Sun May 9 01:25:37 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkiconfactory.c (add_to_cache): Actually count the
+ cached icons. (#135888, Crispin Flowerday)
+
Sun May 9 00:03:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
+Sun May 9 01:25:37 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkiconfactory.c (add_to_cache): Actually count the
+ cached icons. (#135888, Crispin Flowerday)
+
Sun May 9 00:03:03 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (gtk_ui_manager_get_widget): Make sure
CachedIcon *icon;
ensure_cache_up_to_date (icon_set);
-
+
g_object_ref (pixbuf);
/* We have to ref the style, since if the style was finalized
if (style)
g_object_ref (style);
-
icon = g_new (CachedIcon, 1);
icon_set->cache = g_slist_prepend (icon_set->cache, icon);
+ icon_set->cache_size++;
icon->style = style;
icon->direction = direction;
if (icon_set->cache_size >= NUM_CACHED_ICONS)
{
/* Remove oldest item in the cache */
-
GSList *tmp_list;
tmp_list = icon_set->cache;